package org.jeecg.modules.foc.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 告警管理
 * @Author: jeecg-boot
 * @Date:   2025-01-10
 * @Version: V1.0
 */
@Data
@TableName("foc_alarm")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="foc_alarm对象", description="告警管理")
public class FocAlarm {
    
	/**id*/
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "id")
	private java.lang.Long id;
	/**警唯一标识*/
	@Excel(name = "告警唯一标识", width = 15)
    @ApiModelProperty(value = "警唯一标识")
	private java.lang.String serialNumber;
	/**告警关联的点位对象guid*/
	@Excel(name = "告警关联的点位对象guid", width = 15)
    @ApiModelProperty(value = "告警关联的点位对象guid")
	private java.lang.String guid;
	/**消息类型。1=触发，2=恢复*/
	@Excel(name = "消息类型。1=触发，2=恢复", width = 15)
    @ApiModelProperty(value = "消息类型。1=触发，2=恢复")
	private java.lang.Integer msgType;
	/**告警产生/恢复时间,UNIX时间戳（秒级*/
	@Excel(name = "告警产生/恢复时间,UNIX时间戳（秒级", width = 15)
    @ApiModelProperty(value = "告警产生/恢复时间,UNIX时间戳（秒级")
	private java.lang.Long time;
	/**告警内容。最大长度1024字节*/
	@Excel(name = "告警内容。最大长度1024字节", width = 15)
    @ApiModelProperty(value = "告警内容。最大长度1024字节")
	private java.lang.String content;
	/**告警级别*/
	@Excel(name = "告警级别", width = 15)
    @ApiModelProperty(value = "告警级别")
	private java.lang.Integer alarmLevel;
	/**alarmType*/
	@Excel(name = "alarmType", width = 15)
    @ApiModelProperty(value = "alarmType")
	private java.lang.Integer alarmType;
	/**关联监点位的当前值*/
	@Excel(name = "关联监点位的当前值", width = 15)
    @ApiModelProperty(value = "关联监点位的当前值")
	private java.lang.String snapshot;
	/**告警处理建议*/
	@Excel(name = "告警处理建议", width = 15)
    @ApiModelProperty(value = "告警处理建议")
	private java.lang.String suggestion;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
	private java.lang.Integer delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime = new Date();
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
